import request from '@/utils/request.js'

// 获取登录
export function getLoginApi() {
	return request.post('/?service=App.User.logo',{},{isLoading: true})
}
// 账号密码
export function commonLoginApi(data) {
	return request.post('/?service=App.Passport.logincommonAccountApi',data,{isLoading: true})
}
// 获取分享页面和二维码
export function getShareCodeApi(data) {
	return request.post('/?service=App.User.GetPromoteApi',data,{isAuth: true,isForm: true})
}
// 获取用户基本信息
export function getUserInfoApi(data) {
	return request.post('/?service=App.User.MemberInfoApi',data,{isAuth: true, isForm: true})
}
// 获取验证码
export function getCodeApi(data) {
	return request.post('/?service=App.Tools.LogincommonSendSmsApi',data,{isLoading: true, isForm: true})
}
// 短信验证码登录
export function codeLoginApi(data) {
	return request.post('/?service=App.Passport.LogincommonPhoneApi',data,{isLoading: true})
}
// 微信小程序登录
export function miniWxLoginApi(data) {
	return request.post('/?service=App.Passport.LoginWechatApi',data,{isLoading: true})
}
// 微信小程序授权手机号
export function miniAuthLoginApi(data) {
	return request.post('/?service=App.Passport.LoginMPPhoneApi',data,{isLoading: true})
}
// 普通注册
export function registerApi(data) {
	return request.post('/?service=App.Passport.registerPhoneApi',data,{isLoading: true})
}
// 用户地址列表
export function getAddressListApi(data) {
	return request.post('/?service=App.User.AddressGetListApi',data,{isLoading: true})
}
// 用户地址新增
export function addAddressApi(data) {
	return request.post('/?service=App.User.AddaddressDetailActionApi',data,{isLoading: true})
}
// 用地址详情
export function getAddressApi(data) {
	return request.post('/?service=App.User.AddressDetailApi',data,{isLoading: true})
}
// 删除地址
export function delAddressApi(data) {
	return request.post('/?service=App.User.AddressDeleteApi',data,{isLoading: true})
}
// 配送方式
export function getDeliveryListApi(data) {
	return request.post('/?service=App.Shipping.ShippingListTopApi',data,{isLoading: true})
}
// 配送方式选择
export function postDeliveryChooseApi(data) {
	return request.post('/?service=App.Shipping.ShippingListBottomApi',data)
}
// 开票方式
export function getTaxListApi(data) {
	return request.post('/?service=App.Order.TaxListApi',data,{isLoading: true})
}
// 获取用户信息
export function getMemberApi(data) {
	return request.post('/?service=App.User.getMemberApi',data,{isLoading: true})
}
// 用户信息保存
export function saveUserInfoApi(data) {
	return request.post('/?service=App.User.MemberinfoSaveApi',data,{isLoading: true})
}
// 获取修改密码手机号
export function getPhoneApi(data) {
	return request.post('/?service=App.Passport.GetSetting',data,{isLoading: true})
}
// 获取修改密码手机号验证码
export function getPhoneCodeApi(data) {
	return request.post('/?service=App.Tools.SecuritypwdSendSmsApi',data,{isLoading: true})
}
// 修改密码
export function setPasswordApi(data) {
	return request.post('/?service=App.User.SecuritypwdUpdateApi',data,{isLoading: true})
}
// 收藏列表
export function getCollectListApi(data) {
	return request.post('/?service=App.User.CollectlistActionApi',data,{isLoading: true})
}